<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
           <?php
        $xiangjiao=2*7.99;
         $juzi=1*6.98;
          $pingguo=3*3.99;
       $all=($xiangjiao+$juzi+$pingguo)*0.8;
               ?>
        
        
        <table border="1">
            <thead>
                <tr>
                    <th>商品名称</th>
                    <th>购买数量</th>
                    <th>商品单价</th>
                    <th>商品金额</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>香蕉</td>
                    <td>2</td>
                    <td>7.99</td>
                    <td><?php echo "$xiangjiao";?></td>
                </tr>
                <tr>
                    <td>橘子</td>
                    <td>1</td>
                    <td>6.89</td>
                    <td><?php echo "$juzi";?></td>
             
                </tr>
                <tr>
                    <td>苹果</td>
                    <td>3</td>
                    <td>3.99</td>
                    <td><?php echo "$pingguo";?></td>
                   
                </tr>
                   <tr>
                       <td>&nbsp;</td>
                       <td>&nbsp;</td>>
                    <td colspan="2">商品折扣：0.8</td>
                </tr>
                <tr>
                
                    <td colspan="4">总金额:<?php echo "$all";?></td>
                </tr>
            
            </tbody>
        </table>

     
        
    </body>
</html>
